package org.micropayment.model.service;

import java.util.List;
import org.micropayment.model.MicropaymentConsumer;
import org.springframework.stereotype.Repository;

/**
 *
 * @author jj
 */
@Repository
public interface MicropaymentConsumerDAO {

    public MicropaymentConsumer findById(Integer id);

    public List<MicropaymentConsumer> findAll();

    public List<MicropaymentConsumer> findList (int firstResult, int maxResults);

    public MicropaymentConsumer findByConsumerKey(String consumerKey);

    public MicropaymentConsumer save(MicropaymentConsumer consumer) ;

    public MicropaymentConsumer update(MicropaymentConsumer consumer);

    public boolean delete(MicropaymentConsumer consumer) ;
    
}
